Optimal. Leaf size=45 \[ \frac {2 (a+a \sin (c+d x))^3}{3 a^2 d}-\frac {(a+a \sin (c+d x))^4}{4 a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2746, 45}
\begin {gather*} \frac {2 (a \sin (c+d x)+a)^3}{3 a^2 d}-\frac {(a \sin (c+d x)+a)^4}{4 a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2746
Rubi steps
\begin {align*} \int \cos ^3(c+d x) (a+a \sin (c+d x)) \, dx &=\frac {\text {Subst}\left (\int (a-x) (a+x)^2 \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac {\text {Subst}\left (\int \left (2 a (a+x)^2-(a+x)^3\right ) \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac {2 (a+a \sin (c+d x))^3}{3 a^2 d}-\frac {(a+a \sin (c+d x))^4}{4 a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 44, normalized size = 0.98 \begin {gather*} -\frac {a \cos ^4(c+d x)}{4 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 36, normalized size = 0.80
method | result | size |
derivativedivides | \(\frac {-\frac {a \left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(36\) |
default | \(\frac {-\frac {a \left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(36\) |
risch | \(\frac {3 a \sin \left (d x +c \right )}{4 d}-\frac {a \cos \left (4 d x +4 c \right )}{32 d}+\frac {a \sin \left (3 d x +3 c \right )}{12 d}-\frac {a \cos \left (2 d x +2 c \right )}{8 d}\) | \(59\) |
norman | \(\frac {\frac {2 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {10 a \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {10 a \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {2 a \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 a \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}\) | \(118\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 48, normalized size = 1.07 \begin {gather*} -\frac {3 \, a \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, a \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 39, normalized size = 0.87 \begin {gather*} -\frac {3 \, a \cos \left (d x + c\right )^{4} - 4 \, {\left (a \cos \left (d x + c\right )^{2} + 2 \, a\right )} \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.20, size = 60, normalized size = 1.33 \begin {gather*} \begin {cases} \frac {2 a \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {a \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {a \cos ^{4}{\left (c + d x \right )}}{4 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right ) \cos ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.18, size = 48, normalized size = 1.07 \begin {gather*} -\frac {3 \, a \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, a \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 46, normalized size = 1.02 \begin {gather*} \frac {-\frac {a\,{\sin \left (c+d\,x\right )}^4}{4}-\frac {a\,{\sin \left (c+d\,x\right )}^3}{3}+\frac {a\,{\sin \left (c+d\,x\right )}^2}{2}+a\,\sin \left (c+d\,x\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________